Component({
  options: {
    styleIsolation: "shared",
  },
  properties: {
    title: {
      type: String,
      value: "",
    },
    everyweek: {
      type: Object,
      value: {},
    },
    showselector: {
      type: Boolean,
      value: false,
    },
    StartTime: String,
    EndTime: String,
  },
  data: {
    showselector: false,
  },
  methods: {
    //打开选择器弹出层
    onClick(e) {
      console.log(e);
      let { showselector } = this.data;
      this.setData({
        showselector: !showselector,
      });
    },
    //确认
    onClose() {
      this.setData({
        showselector: false,
      });
      console.log("123");
    },

    getStart(e) {
      console.log(e);
      let { type } = e.target.dataset;
      let value = e.detail;
      console.log(type, value);
      // this.setData({
      // 	aStart:
      // })
    },
    getEnd(e) {
      console.log(e);
      let { type } = e.target.dataset;
      let value = e.detail;
      console.log(type, value);
    },
  },
});
